package org.csu.secondhand.api.service;

import org.csu.secondhand.api.entity.Buying;
import org.csu.secondhand.api.entity.Dealing;

import java.util.List;

public interface BuyingService {
    Buying insertBuying(Buying buying);
    List<Dealing> getBuyingByUser(String id);
    List<Dealing> getSellingByUser(String id);
    List<Buying> getBuyingList(String id);
    List<Buying> getSellingList(String id);
    Buying removeBuying(long id);
    Buying changeStatus(long id, String staus);
    Buying getBuyingById(long id);
    Dealing getDealingByBuying(long id);
}
